frequency of each word in String